package com.aizuda.boot.modules.business.contractName.domain.entity;

import com.aizuda.boot.modules.common.constant.enums.MultipleEntityRule;
import com.aizuda.boot.modules.common.constant.enums.NameRuleType;
import com.aizuda.core.bean.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @Author sangyirong
 * @ClassName ContractNameRule
 * @Version 1.0
 * @Date 2025/7/4 14:46
 */
@Data
@Schema(description = "合同名称生成规则")
public class ContractNameRule extends BaseEntity {

    @Schema(description = "规则名称")
    private String ruleName;

    @Schema(description = "规则编码")
    private String ruleCode;

    @Schema(description = "是否可编辑")
    private Boolean edit;

    @Schema(description = "规则类型")
    private NameRuleType ruleType;

    @Schema(description = "是否启用")
    private Boolean isEnabled = true;

    @Schema(description = "多个我方主体时生成规则")
    private MultipleEntityRule ourEntityRule;

    @Schema(description = "多个对方主体时生成规则")
    private MultipleEntityRule counterpartyEntityRule;
}
